package edu.yctc.origin.entity;

import java.util.Date;

/**
 * 图书实体类
 * 
 * @author 赵宜珺
 *
 */
public class BookDO {

    /** 主键 */
    private long id;
    /** 书名 */
    private String name;
    /** 编号 */
    private String number;
    /** 出版社id */
    private long pressId;
    /** 作者id */
    private long authorId;
    /** 创建时间 */
    private Date createTime;
    /** 修改时间 */
    private Date modifyTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public long getPressId() {
        return pressId;
    }

    public void setPressId(long pressId) {
        this.pressId = pressId;
    }

    public long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(long authorId) {
        this.authorId = authorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("BookDO [id=");
        builder.append(id);
        builder.append(", name=");
        builder.append(name);
        builder.append(", number=");
        builder.append(number);
        builder.append(", pressId=");
        builder.append(pressId);
        builder.append(", author=");
        builder.append(authorId);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append(", modifyTime=");
        builder.append(modifyTime);
        builder.append("]");
        return builder.toString();
    }

}
